//
//  SubViewController.m
//  BaiKT
//
//  Created by HOCVIEN on 4/21/15.
//  Copyright (c) 2015 HuynhTridung. All rights reserved.
//

#import "SubViewController.h"

@interface SubViewController ()

@end

@implementation SubViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (id)initWithData:(NSData*)data andDecsrciption:(NSString*)decs{
    self = [super init];
    
    if (self) {
        self.imgData = data;
        self.decscription = decs;
    }
    
    return self;
}
- (void)setDataForView{
    self.foodImg.image = [UIImage imageWithData:self.imgData];
    self.decscriptionTv.text = self.decscription;
    self.bgImg.image = [UIImage imageWithData:self.imgData];
}

- (IBAction)onClickNextBtn:(id)sender {
}
- (IBAction)onClickPrevBtn:(id)sender {
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
